package kisti.gui.CDF;


import java.awt.Container;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.ImageIcon;
import javax.swing.JEditorPane;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

import daniel.kisti.Helper.Caf_Helper;




/**
 * <pre>
 * kisti.gui.CDF
 *   |_ CAF_CE03Mon.java
 *
 * </pre>
 *
 * Desc : ce03 그래프 데이터를 가져와 패널을 생성한다. 
 * @Company : KISTI
 * @Author :daniel
 * @Date   :2011. 11. 14. 오후 4:57:22
 * @Version:
 *
 */
public class CAF_CE03Mon extends JPanel {
	private String url;
	private Container c;	
	private Caf_Helper cafHelper;
	private String imgPath ;
	private JLabel graphName ;
	private JLabel graphImageLabel;
	
	/**
	 * 
	 * Desc : Constructor of CAF_CE03Mon.java class
	 */
	public CAF_CE03Mon() {		
		cafHelper = new Caf_Helper();
		
		imgPath = cafHelper.getCeMonGraphImage();		
		
		graphName = new JLabel("PBS Activity for CE03");
		graphName.setBounds(200,30, 150, 20);
		graphImageLabel = new JLabel(new ImageIcon(imgPath));
		graphImageLabel.setBounds(0,70, 500, 200);
		
		this.setLayout(null);
		this.add(graphName);
		this.add(graphImageLabel);		
	}
	
	
	
	
	
	
	
	
	
	
	

	public static void main(String args[]) {
		CAF_CE03Mon app = new CAF_CE03Mon();
		JFrame f = new JFrame();
		f.add(app);
		f.setSize(800,700 );
		f.setVisible(true);
		f.addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent e) {
				System.exit(0);
			}

			public void windowDeiconified(WindowEvent e) {
				System.out.println("windowDeiconified");
			}

			public void windowIconified(WindowEvent e) {
				System.out.println("windowIconified");
			}
		});
	}
}
